device_generic_resrc

Configuration for Device generic utility resource.

Read/write properties

ipaddress<String[]>

List of SVM IP Address.
Minimum length = 1
Maximum length = 64

resource_type<String>

Type of resource.
Minimum length = 1

sync<Boolean>

Ping SVM to check its status.

failure_action<String>

Action taken on failure .

payload<String>

Payload/Body Request .

device_family_type<String>

Device family type.
Minimum length = 1

Read only properties

act_id<String>

Activity Id.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

add

add

URL:https://<MGMT-IP>/nitro/v2/config/device_generic_resrc?onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"device_generic_resrc": {
      "ipaddress":<String_value[]>,
      "resource_type":<String_value>,
      "payload":<String_value>,
      "device_family_type":<String_value>,
      "sync":<Boolean_value>,
      "failure_action":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "device_generic_resrc":[{
      "ipaddress":<String_value>,
      "resource_type":<String_value>,
      "sync":<Boolean_value>,
      "failure_action":<String_value>,
      "payload":<String_value>,
      "act_id":<String_value>,
      "device_family_type":<String_value>}]}